/**
 * Created by QIAODI on 8/24/2016.
 */
const fs = require("fs");

exports.addImage = function (imgName, realPath) {
    var out1 = fs.createWriteStream("D:/upload/"+imgName);
    var in1 = fs.createReadStream(realPath);
    in1.pipe(out1);
    fs.unlink(realPath, function(args) {});
}